package cn.com.w.dao.Entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;
import java.time.LocalDateTime;
/**
 * <p>
 * 
 * </p>
 *
 * @author w
 * @since 2025-05-25
 */
@Getter
@Setter
@ToString
lombok.Builder
@TableName("t_blog")
lombok.NoArgsConstructor
lombok.AllArgsConstructor
public class TBlog implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId("id")
    private Long id;

    @TableField("appreciation")
    private Boolean appreciation;

    @TableField("commentabled")
    private Boolean commentabled;

    @TableField("content")
    private String content;

    @TableField("create_time")
    private LocalDateTime createTime;

    @TableField("first_picture")
    private String firstPicture;

    @TableField("flag")
    private String flag;

    @TableField("published")
    private Boolean published;

    @TableField("recommend")
    private Boolean recommend;

    @TableField("share_statement")
    private Boolean shareStatement;

    @TableField("title")
    private String title;

    @TableField("update_time")
    private LocalDateTime updateTime;

    @TableField("views")
    private Integer views;

    @TableField("type_id")
    private Long typeId;

    @TableField("user_id")
    private Long userId;

    @TableField("description")
    private String description;

    public static final String ID = "id";

    public static final String APPRECIATION = "appreciation";

    public static final String COMMENTABLED = "commentabled";

    public static final String CONTENT = "content";

    public static final String CREATE_TIME = "create_time";

    public static final String FIRST_PICTURE = "first_picture";

    public static final String FLAG = "flag";

    public static final String PUBLISHED = "published";

    public static final String RECOMMEND = "recommend";

    public static final String SHARE_STATEMENT = "share_statement";

    public static final String TITLE = "title";

    public static final String UPDATE_TIME = "update_time";

    public static final String VIEWS = "views";

    public static final String TYPE_ID = "type_id";

    public static final String USER_ID = "user_id";

    public static final String DESCRIPTION = "description";
}
